import request from '@/utils/request'

export function getLineData() {
  return request({
    url: '/view/getTimely',
    method: 'GET'
  })
}

export function getPieData() {
  return request({
    url: '/view/getPercent',
    method: 'GET'
  })
}

export function getHistory(period) {
  return request({
    url: '/view/getHistory',
    params: {
      'period': period
    },
    method: 'GET'
  })
}
export function getTodayRecord() {
  return request({
    url: '/view/getTodayRecord',
    method: 'GET'
  })
}
